package com.headingdata.loop;

public class ForDemo1 {
    public static void main(String[] args) {
        //学习for循环
        for(int i = 0; i < 10; i++){
            System.out.println("Hello World!");
        }
        System.out.println("-----------------------------------------------------------------------------");

        for (int i = 1; i <= 5; i++){
            System.out.println("Hello World2!");
        }
        System.out.println("-----------------------------------------------------------------------------");

        for (int i = 1; i <= 15; i += 2){
            System.out.println("Hello World3!");
        }
    }
}
